export const Api = {
  banner: {
    all: '/api/banner',
    detail: '/api/banner/detail'
  },
  homeLink: {
    all: '/api/home-link'
  },
  studyTimeLine: {
    all: '/api/study-time-line'
  },
  me: {
    detail: '/api/me'
  },
  product: {
    me: '/api/product/me',
    detail: '/api/product/',
    list: '/api/product',
    types: '/api/product/types',
    comments: '/api/product/comments/'
  },
  study: {
    me: '/api/study/me',
    detail: '/api/study/',
    list: '/api/study',
    types: '/api/study/types',
    comments: '/api/study/comments/'
  },
  feedback: {
    add: '/api/feedback',
    list: '/api/feedback',
    allAuth: '/api/feedback/all-auth'
  },
  package: {
    list: '/api/package',
    types: '/api/package/types',
    detail: '/api/package/',
    add: '/api/package/add',
    comments: '/api/package/comments/'
  },
  user: {
    login: '/api/user/login',
    sessionLogin: '/api/user/session-login',
    verificationCode: '/api/user/verification-code'
  },
  csrf: '/api/csrf',
  server: {
    imageUp: '/api/server/image-up'
  },
  baidu: {
    localTextIdentify: '/api/baidu/local-text-identify',
    urlTextIdentify: '/api/baidu/url-text-identify',
    qrcodeIdentify: '/api/baidu/qrocde-identify',
    idcardIdentify: '/api/baidu/idcard-identify',
    bankcardIdentify: '/api/baidu/bankcard-identify',
    otherIdentify: '/api/baidu/other-identify'
  },
  coding: {
    base64: '/api/coding/base64',
    imageToBase64: '/api/coding/image-to-base64',
    base64ToImage: '/api/coding/base64-to-image',
    md5: '/api/coding/md5',
    hmac: '/api/coding/hmac',
    aes: '/api/coding/aes'
  },
  cacheData: {
    crud: '/api/cache-data'
  },
  siteNavigation: {
    curd: '/api/site-navigation'
  },
  elasticsearch: {
    analyze: '/elasticsearch/_analyze'
  }
}

/**
 * 短连接
 */
export const ShortConnection = {
  redis: '/short-connection/redis',
  mongo: '/short-connection/mongo'
}

export const OAuth = {
  // QQ 用户信息
  qqUserInfo: '/oauth/qq/user-info',
  // 退出登录
  logout: '/oauth/logout',
  // session 登录
  sessionLogin: '/oauth/session-login'
}

export const Admin = {
  auth: {
    user: {
      logout: '/admin/auth/user/logout',
      update: '/admin/auth/user/',
      create: '/admin/auth/user',
      all: '/admin/auth/user',
      delete: '/admin/auth/user/'
    },
    role: {
      create: '/admin/auth/role',
      all: '/admin/auth/role',
      update: '/admin/auth/role/',
      delete: '/admin/auth/role/'
    },
    page: {
      create: '/admin/auth/page',
      all: '/admin/auth/page',
      update: '/admin/auth/page/',
      delete: '/admin/auth/page/'
    },
    api: {
      create: '/admin/auth/api',
      all: '/admin/auth/api',
      update: '/admin/auth/api/',
      delete: '/admin/auth/api/'
    }
  },
  ali: {
    ossSgin: '/admin/ali/oss-sign',
    ossDelete: '/admin/ali/oss',
    ossList: '/admin/ali/oss/list'
  },
  banner: {
    create: '/admin/banner',
    delete: '/admin/banner/',
    update: '/admin/banner/',
    dustbinList: '/admin/banner/dustbin-list',
    dustbinRestore: '/admin/banner/dustbin-restore/',
    dustbinDelete: '/admin/banner/dustbin-delete/'
  },
  skills: {
    create: '/admin/skills',
    list: '/admin/skills',
    delete: '/admin/skills/',
    update: '/admin/skills/'
  },
  work: {
    create: '/admin/work',
    list: '/admin/work',
    delete: '/admin/work/',
    update: '/admin/work/'
  },
  message: {
    delete: '/admin/message/',
    list: '/admin/message',
    batchDelete: '/admin/message/batch-delete'
  },
  homeLink: {
    create: '/admin/home-link',
    delete: '/admin/home-link/',
    update: '/admin/home-link/',
    dustbinList: '/admin/home-link/dustbin-list',
    dustbinRestore: '/admin/home-link/dustbin-restore/',
    dustbinDelete: '/admin/home-link/dustbin-delete/'
  },
  studyTimeLine: {
    create: '/admin/study-time-line',
    delete: '/admin/study-time-line/',
    update: '/admin/study-time-line/',
    dustbinList: '/admin/study-time-line/dustbin-list',
    dustbinRestore: '/admin/study-time-line/dustbin-restore/',
    dustbinDelete: '/admin/study-time-line/dustbin-delete/'
  },
  study: {
    create: '/admin/study',
    delete: '/admin/study/',
    update: '/admin/study/',
    dustbinList: '/admin/study/dustbin-list',
    dustbinRestore: '/admin/study/dustbin-restore/',
    dustbinDelete: '/admin/study/dustbin-delete/'
  },
  me: {
    update: '/admin/me/'
  },
  feedback: {
    list: '/admin/feedback',
    delete: '/admin/feedback/',
    update: '/admin/feedback/',
    dustbinList: '/admin/feedback/dustbin-list',
    dustbinRestore: '/admin/feedback/dustbin-restore/',
    dustbinDelete: '/admin/feedback/dustbin-delete/'
  },
  product: {
    create: '/admin/product',
    delete: '/admin/product/',
    update: '/admin/product/',
    dustbinList: '/admin/product/dustbin-list',
    dustbinRestore: '/admin/product/dustbin-restore/',
    dustbinDelete: '/admin/product/dustbin-delete/'
  },
  package: {
    create: '/admin/package',
    delete: '/admin/package/',
    update: '/admin/package/',
    dustbinList: '/admin/package/dustbin-list',
    dustbinRestore: '/admin/package/dustbin-restore/',
    dustbinDelete: '/admin/package/dustbin-delete/'
  },
  ecs: {
    allFiles: '/admin/ecs/all-files',
    deleteFile: '/admin/ecs/delete-file',
    deleteAll: '/admin/ecs/delete-all'
  },
  logs: {
    web: {
      ajaxList: '/admin/logs/web-ajax',
      ajaxDelete: '/admin/logs/web-ajax/',
      processList: '/admin/logs/web-process',
      processDelete: '/admin/logs/web-process/',
      errorList: '/admin/logs/web-error',
      errorDelete: '/admin/logs/web-error/'
    },
    server: {
      processList: '/admin/logs/server-process',
      processDelete: '/admin/logs/server-process/',
      errorList: '/admin/logs/server-error',
      errorDelete: '/admin/logs/server-error/'
    }
  },
  siteNavigation: {
    curd: '/admin/site-navigation',
    findSection: '/admin/site-navigation/find-sections'
  }
}
